package com.junmeng.jdemo.recycler.viewbinding2;

import android.widget.Toast;

import com.example.common.recycler.viewbinding.BaseViewBindingBindView;
import com.example.common.recycler.viewbinding.ViewBindingViewHolder;
import com.junmeng.jdemo.databinding.ItemBean1Binding;

public class Bean1BindView extends BaseViewBindingBindView<Bean1BindView.Item, ItemBean1Binding> {

    @Override
    public void bindViewDataWithFull(ViewBindingViewHolder<ItemBean1Binding> holder, int position, Item item) {
        holder.binding.btnTest.setOnClickListener(v -> {
            Toast.makeText(holder.itemView.getContext(), "position=" + position, Toast.LENGTH_SHORT).show();
        });
    }
    public static class Item {
    }
}
